package com.tang.mybatis.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tang.mybatis.domain.User;
import com.tang.mybatis.mapper.UserMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Tang
 * @classname UserServiceImpl
 * @description [  ]
 * @date 2021/5/9 14:07
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService{
    @Override
    public void updateUser(User user) {
        getBaseMapper().alwaysUpdateSomeColumnById(user);
    }

    @Override
    public List<User> findAll() {
        return getBaseMapper().findAll();
    }

}